package com.jasmine.bjstkserver.server.folder;

import com.jasmine.bjstkserver.server.folder.model.FolderEntity;
import com.jasmine.bjstkserver.server.folder.model.FolderReq;
import com.jasmine.bjstkserver.server.folder.model.FolderTreeRes;

import java.util.List;

/**
 * @author jasmineXz
 */
public interface FolderService {
    /** 列表 */
    List<FolderTreeRes> findList(FolderReq dept);

    /** 树状 */
    List<FolderTreeRes> findTree(FolderReq dept);

    /** 单个 */
    FolderEntity findOne(FolderReq dept);

    /** 插入 */
    Integer insert(FolderEntity dept);

    /** 修改 */
    Integer updateOne(FolderEntity dept);

    /** 删除 */
    Integer deleteOne(FolderReq dept) throws Exception;

}
